﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

/// <summary>
/// Summary description for Class1
/// </summary>
[Table("QHSE_XY_SYS_USER")]
//[Table("QHSE_SYS_USER")]
public class QHSESysUser:EntityBase
{
    public QHSESysUser()
    {
    }

    /// <summary>
    /// 身份证号
    /// </summary>
    [Column("ID_CARD")]
    [MaxLength(18)]
    public string? IdCard { get; set; }= "";

    /// <summary>
    /// 更新时间
    /// </summary>
    [Column("UPDATE_TIME")]
    public DateTime UpdateTime { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Column("CREATE_TIME")]
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 员工性别
    /// </summary>
    [Column("USER_SEX")]
    public int? UserSex { get; set; } = 0;

    /// <summary>
    /// 员工状态
    /// </summary>
    [Column("DATA_STATUS")]
    public QHSEUserStatusType UserStatus { get; set; } = QHSEUserStatusType.Enable;

    /// <summary>
    /// 员工来源
    /// </summary>
    [Column("USER_FROM")]
    public QHSEUserFromType UserFrom { get; set; } = QHSEUserFromType.Unknown;


    /// <summary>
    /// 员工编号
    /// </summary>
    [Column("EMPLOYEE_NO")]
    [MaxLength(10)]
    public string? EmployeeNo { get; set; }= "";

    /// <summary>
    /// 手机号码
    /// </summary>
    [Column("MOBILE")]
    [MaxLength(16)]
    public string? Mobile { get; set; }= "";

    /// <summary>
    /// 用户ID
    /// </summary>
    [Column("USER_ID")]
    [MaxLength(32)]
    [Key]
    public string UserId { get; set; }= "";

    /// <summary>
    /// 用户真名
    /// </summary>
    [Column("USER_NAME")]
    [MaxLength(32)]
    public string? UserName { get; set; }= "";

    /// <summary>
    /// 中油邮箱
    /// </summary>
    [Column("EMAIL")]
    [MaxLength(32)]
    public string? Email { get; set; }= "";

    /// <summary>
    /// 组织机构ID
    /// </summary>
    [Column("ORGANIZATION_ID")]
    [MaxLength(34)]
    public string? OrganizationId { get; set; } = "";

    /// <summary>
    /// 用户的头像
    /// </summary>
    [Column("USER_AVATAR")]
    [MaxLength(512)]
    public string? UserAvatar { get; set; }= "";

}
